<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
 <script>
		        function onNotNull(data) {
		        	if(data==1){
			        	var value =$("#baiduseach").val();
			        	if(value==""){
			        		alert("大侠,你想要什么呢？");
			        	}else{
			        		$("#baidu").submit();
			        	}
		        	}else{
			        	var value =$("#csdnseach").val();
				        	if(value==""){
					        	alert("大侠,你想要什么呢？");
				        	}else{
				        		$("#csdn").submit();
				        	}
		        	}
		        };
 </script> 

<style type="text/css">
	.a001{
		font-size: 15px;;
	color: #FFFFFF;
	}
input.bdbtn {width:102px; height:32px; line-height:32px; cursor:pointer; border:0px; background-color: #1a89ed;font-family:'Microsoft Yahei'; font-size:16px;color:#f3f3f3;}
input.bdtext {width: 240px;padding-left: 5px;margin-left: 10px;margin-right: 10px;height: 30px;line-height: 30px;}
.search-btn2{width:102px; height:32px; line-height:32px; cursor:pointer; border:0px; background-color:#d6000f;font-family:'Microsoft Yahei'; font-size:16px;color:#f3f3f3;}

</style>

<title></title>
</head>
<body>
	<div style="background-color:#262626;filter:alpha(Opacity=60);-moz-opacity:0.6;opacity: 0.6;margin:0px auto;">
		<div style="width: 1000px;text-align:center;">
		<div style='overflow:hidden;text-align:center;'><!-- 百度搜索 -->
		    <form  id = 'baidu' style="margin:0px;display:inline;"action="http://www.baidu.com/baidu" target="_blank">
				<input id ="baiduseach" class='bdtext' type="text" name="word"  size="30">
				<input class='bdbtn' type="button" value="baidu搜索"  onclick="onNotNull('1');">
			</form>&emsp;&emsp;&emsp; 
		    <form  id = 'csdn' style="margin:0px;display:inline;"action="http://so.csdn.net/so/search/s.do" target="_blank">
				<input id ="csdnseach" class='bdtext' type="text" name="q"  size="30">
				<input class='search-btn2' type="button" value="CSDN搜索" onclick="onNotNull('2');">
			</form>
		</div>
		</div>
	</div>
</body>
</html>